package com.cicc.beergamevirtualsimulationsystem.model.record.dto;

import com.cicc.beergamevirtualsimulationsystem.common.constant.RecordConstant;
import com.cicc.beergamevirtualsimulationsystem.model.recordDetail.dto.RecordDetailUpdateReq;
import jakarta.validation.Valid;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;
@Data
public class RecordUpdateReq {
    /**
     * 记录id
     */
    @NotBlank(message = RecordConstant.RECORD_ID_NULL)
    private String id;
    /**
     * 本期预收货总量（工厂：计划生产量  其他：订货总量）
     */
    @Min(value = RecordConstant.NUM_MIN, message = RecordConstant.NUM_ERROR)
    private Integer preReceiverTotal;
    /**
     * 记录明细(本周期)
     */
    @Valid
    private List<RecordDetailUpdateReq> recordDetailEntities;
}
